package com.adinnet.admin.system.service;

import com.adinnet.admin.system.model.SysMenu;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 权限表 服务类
 * </p>
 *
 * @author sunjianbo
 * @since 2019-05-17
 */
public interface SysMenuService extends IService<SysMenu> {

    List<SysMenu> listByUserId(Integer userId);

    List<SysMenu> listByRoleIds(@Param("roleIds") List<Integer> roleIds);

    List<SysMenu> listByRoleId(Integer roleId);

    List<String> buttonListByUserId(Map<String, Object> map);
}
